<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>

    let s = new Set([1,2,3,4,5,5,5]);
    console.log(s);

    // 追加新数据
    s.add(7);
    console.log(s);

    // 删除数据
    s.delete(3);
    console.log(s);

    // 判断数据中是否有某值
    let re = s.has(2);
    console.log(re);

    // 清除所有成员
    s.clear();
    console.log(s);





</script>



</body>
</html>